<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>

        // location.href = '' 
        // location.assign('http://www.baidu.com');

        //  location.replace('http://www.baidu.com');   --- 替换当前文档  --- 消除之前的历史记录


        // location.reload()   刷新页面



        // window.open()    在新窗口中打开 --- 默认会被拦截





        // setTimeout(function () {
        //     location.assign('http://www.baidu.com');
        // }, 3000)


        // location.replace('http://www.baidu.com')

    </script>

</body>

</html>